/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Herencia;

/**
 *
 * @author Emmanuelsg
 */
public class Auto extends Vehiculo{
    
    int NumeroPuertas;

    public Auto(int NumP, String marca) {
        this.NumeroPuertas = NumP;
        this.marca = marca;
        
    }   
    
    public void Comenzar(){
        //this.Encender();
        //this.Encender(marca);
        this.Encender(marca, NumeroPuertas);
    }
    
    public int SumarPuertas(int NumA, int NumB){
        int TotalPuertas;
        
        TotalPuertas = NumA + NumB; 
        
        return TotalPuertas;
    }
        
    
   
}
